package com.wjc.train.business.req;

import com.wjc.train.common.entity.BaseModel;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Guessed
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AdminSendCodeReq extends BaseModel {

    @NotBlank(message = "[手机号不能为空]")
    @Pattern(regexp = "^1\\d{10}$",message = "手机号码格式有误")
    private String mobile;
}
